{extend name="index/index" /}

{block name="main"}
<div class="admin-biaogelist">
	
    <div class="listbiaoti am-cf">
      <ul class="am-icon-flag on"> 修改用户</ul>
      
      <dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <a href="#">修改用户</a></dl>

      
      
    </div>
	
    <div class="fbneirong">
      <form class="am-form" action="{:url('admin/user/update',['id'=>$data.id])}" method="post">

        <input type="hidden" name="_method" value="PUT">
        <input type="hidden" name="id" value="{$data.id}">
        <div class="am-form-group am-cf">
          <div class="zuo">账号：</div>
          <div class="you" style="width:150px">
            <input type="text" class="am-input-sm" id="doc-ipt-email-1" name="username" value="{$data.username}" placeholder="请输入姓名">
          </div>
        </div>

        <div class="am-form-group am-cf">
          <div class="zuo">密码：</div>
          <div class="you" style="width:150px">
            <input type="password" class="am-input-sm" id="doc-ipt-pwd-1" name="pass"  placeholder="请输入密码">
          </div>
        </div>

        <div class="am-form-group am-cf">
          <div class="zuo">角色：</div>
          <div class="you" style="width:100px">
            <select name="role_id">
              {volist name="role" id="vo"}
              <option value="{$vo.id}">{$vo.rolename}</option>
              {/volist}
            </select>
          </div>
        </div>

        <div class="am-form-group am-cf">
          <div class="zuo">状态：</div>
          <div class="you">
            <input type="radio" name="status" value="0" {if condition="$data.status eq 0"}checked{/if}>禁用
            <input type="radio" name="status" value="1" {if condition="$data.status eq 1"}checked{/if}>启用
          </div>
        </div>

        <div class="am-form-group am-cf">
          <div class="you" style="margin-left: 11%;">
              <button type="submit" class="am-btn am-btn-success am-radius">确认添加</button>

          </div>
        </div>
      </form>
    </div>
{/block}